package main;

import br.com.vendor_engine.telas.TelaLogon;
import javax.swing.JOptionPane;

public class Main {

    public static void main(String[] args) {
        
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Windows".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | javax.swing.UnsupportedLookAndFeelException ex) {
            JOptionPane.showMessageDialog(null, "Erro no carregamento do tema Windows:\n" + ex.getMessage());
        }
        
        TelaLogon tl = new TelaLogon(null, true);
        tl.setVisible(true);
        
    }
}
